/*
 * Copyright (C) 2017
 *
 * Brick Yang <printfxxx@163.com>
 *
 * This program is free software. You can redistribute it and/or
 * modify it as you like.
 */

/**
 * @file	dpio.h
 * @brief	Header file for dpio driver
 */

#ifndef _DPMNG_H_
#define _DPMNG_H_

#include <linux/types.h>
#include <linux/fsl/mc.h>

struct mc_version {
	u32 revision;
	u32 major;
	u32 minor;
};

struct mc_soc_version {
	u32 svr;
	u32 pvr;
};

int mc_get_version(struct fsl_mc_io *mc_io,
		   u32 cmd_flags,
		   struct mc_version *mc_ver_info);

int mc_get_soc_version(struct fsl_mc_io *mc_io,
		       u32 cmd_flags,
		       struct mc_soc_version *mc_soc_ver_info);

#endif	/* _DPMNG_H_ */
